content = 'XXXXX读取的内容字符串'

# 每次循环取出来1到300的字符
a = 1
for i in range(10000):
    abc = content[a:a + 300]
    a = a + 300
    